package com.sunnuwell.demo.repository;

import com.sunnuwell.demo.entity.Equipment;
import com.sunnuwell.demo.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * @program: entry
 * @description:
 * @author: Mr.lv
 * @create: 2019-04-24 10:44
 **/

public interface EquipmentRepository extends MongoRepository<Equipment, String> {
    /**
     *
     * findByUsername 命名有研究，比如 findBy后面的名称是实体类属性名称
     * Username
     *
     */

    public Equipment findByManufacturer(String name);
}